import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import 'virtual:svg-icons-register';

// 注册指令
import directive from './directive'; // directive
import './router/permission';

const app = createApp(App);

// 全局方法挂载
app.config.globalProperties.parseTime = parseTime;
app.config.globalProperties.isEmpty = isEmpty;

directive(app);
app.use(router).use(store).mount('#app')
